import { createRouter, createWebHashHistory } from "vue-router";
import { routerPath } from "./routerPath";
import XCRoutes  from "@/router/routes/xiaocheng.js";
import BaiDuMapRoutes from "@/router/routes/baidu_map_router.js";
import TencentMapRoutes from "@/router/routes/tencent_map_router.js";
import TongJiTuRoutes from "@/router/routes/tongjitu_router.js";
import EcharstsRoutes from "@/router/routes/echarts_router.js";
//http://localhost:8889/#/map/dw
const routes = [
  {
    path: "/index",
    // component: () => import("@/views/app/jykj_main.vue")
    name:"testIndex",
    component: () => import("@/views/app/Test2.vue")
  },
  ...BaiDuMapRoutes,
  ...XCRoutes,
  ...TencentMapRoutes,
  ...TongJiTuRoutes,
  ...EcharstsRoutes,
  {
    path: "/zf",
    // component: () => import("@/views/app/jykj_main.vue")
    name:"支付选择",
    component: () => import("@/views/app/PaySelectPage.vue")
  },
  {
    path: "/gzxq",
    // component: () => import("@/views/app/jykj_main.vue")
    name:"雇主详情",
    component: () => import("@/views/app/EmployerDetailPage.vue")
  },
  {
    path: "/gzxqs",
    // component: () => import("@/views/app/jykj_main.vue")
    name:"雇主详情分享",
    component: () => import("@/views/app/EmployerDetailPageShare.vue")
  },
  {
    path: "/fwrxq",
    name: "服务人员详情",
    component: () => import("@/views/app/ServePeopleDetail.vue")
  },
  {
    path: "/fwrxqs",
    name: "服务人员详情分享",
    component: () => import("@/views/app/ServePeopleDetailShare.vue")
  },
  {
    path: "/CertificateImgListPage",
    name: "证书九宫格",
    component: () => import("@/views/app/CertificateImgListPage.vue")
  },  {
    path: "/jykjTest",
    name: "cs",
    component: () => import("@/views/app/jykeTest.vue")
  }, {
    path: "/yhxy",
    name: "用户协议",
    component: () => import("@/views/app/LoginUserAgreementPage.vue")
  },{
    path: "/ysxy",
    name: "隐私协议",
    component: () => import("@/views/app/LoginPrivacyPolicyPage.vue")
  },{
    path: "/sfsdk",
    name: "用户协议",
    component: () => import("@/views/app/LoginSDKAgreementPage.vue")
  },{
    path: "/zhifu2",
    name: "用户协议",
    component: () => import("@/views/app/PaySelectPage2.vue")
  },{
    path: "/pdf",
    name: "用户协议",
    component: () => import("@/views/app/PdfTest.vue")
  },






  {
    path: routerPath.home,
    name: "home",
    component: () => import("@/views/home/HomeView.vue")
  },
  {
    path: routerPath.main,
    name: "主页",
    component: () => import("@/views/MainPage.vue")
  },
  {
    path: "/test",
    name: "test",
    component: () => import("@/views/test/test.vue")
  },
  {
    path: "/test2",
    name: "test2",
    component: () => import("@/views/test/test2.vue")
  },
  {
    path: "/login",
    name: "登录主页",
    component: () => import("@/views/login/loginPage.vue")
  },
  {
    path: "/login2",
    name: "登录主页2",
    component: () => import("@/views/login/login.vue")
  },
  {
    path: routerPath.ShouliBeianList,
    name: '备案受理列表',
    component: () => import('@/views/guanli/ShouliBeianListPage.vue')
  },
  {
    path: routerPath.GlBatj,
    name: '备案统计',
    component: () => import('@/views/beiantongji/BeianTongJiPage.vue')
  },
  {
    path: routerPath.GlBalb,
    name: '备案列表',
    component: () => import('@/views/guanli/BeianListPage.vue')
  },
  {
    path: routerPath.Glyhgl,
    name: '用户管理',
    component: () => import('@/views/guanli/YongHuGuanLiPage.vue')
  },  
  {
    path: routerPath.HandbookListPage,
    name: '备案指南列表',
    component: () => import('@/views/handbook/HandbookListPage.vue')
  },
  {
    path: routerPath.HandbookListItemPage,
    name: '备案指南详情',
    component: () => import('@/views/handbook/HandbookListItemPage.vue')
  },
  {
    path: routerPath.QuestionListPage,
    name: '提问列表',
    component: () => import('@/views/handbook/QuestionListPage.vue')
  },
  {
    path: routerPath.JYBFZXiangQingPage,
    name: '管理端经营不分装备案单详情页',
    component: () => import('@/views/guanli/JYBFZXiangQingPage.vue')
  },
  {
    path: routerPath.WTSCXiangQingPage,
    name: '管理端委托生产备案单详情页',
    component: () => import('@/views/guanli/WTSCXiangQingPage.vue')
  },
  {
    path: routerPath.FZJGXiangQingPage,
    name: '管理端分支机构备案单详情页',
    component: () => import('@/views/guanli/FZJGXiangQingPage.vue')
  },
  {
    path: routerPath.QuYuBeiAndanPage,
    name: '区域备案单',
    component: () => import('@/views/beiantongji/BeiAnDanPage.vue')
  },
  {
    path: routerPath.QuYuBeiAndanListPage,
    name: '区域备案单列表',
    component: () => import('@/views/beiantongji/BeiAnDanListPage.vue')
  },
  {
    path: routerPath.QuYuBeiAnZhePage,
    name: '区域备案者',
    component: () => import('@/views/beiantongji/BeiAnZhePage.vue')
  },
  {
    path: routerPath.QiYeBeiAnDanListPage,
    name: '企业备案单列表',
    component: () => import('@/views/beiantongji/QiYeBeiAnDanListPage.vue')
  },
  {
    path: routerPath.EditInfoPage,
    name: '修改备案者信息',
    component: () => import('@/views/yhgl/EditInfoPage.vue')
  },
  {
    path:'/ZJYPage',
    name: '转基因汇总主页',
    component: () => import('@/views/zhuanjiyin/ZJYPage.vue')
  },
  {
    path: routerPath.AddQuestionPage,
    name: '添加提问',
    component: () => import('@/views/handbook/AddQuestionPage.vue')
  },
  {
    path: '/QiYeShuDialog',
    name: 'QiYeShuDialog',
    component: () => import('@/views/zhuanjiyin/view/QiYeShuDialog.vue')
  },
  {
    path: '/SearchQuyuDialog',
    name: 'SearchQuyuDialog',
    component: () => import('@/views/zhuanjiyin/view/SearchQuyuDialog.vue')
  },
  {
    path: '/PinZhongXiangQingPage',
    name: '品种详情页',
    component: () => import('@/views/zhuanjiyin/PZXiangQingPage.vue')
  },
];
const router = createRouter({
  history: createWebHashHistory(),
  routes
});

// 路由守卫

export default router;
